
package com.jprocms.module.cms.controller.admin.sitetpl.dto;

import com.jprocms.module.cms.framework.annotation.Base64Field;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * 模板资源保存Dto
 *
 * @author: zrcms
 */
public class TplReSourceDto implements Serializable {
    @Schema(description = "文件夹相对路径", required = true)
    private String root;
    @Schema(description = "文件名称 需要前端携带文件格式.html或.css", required = true)
    private String filename;

    /**
     * 修改源文件名
     */
    @Schema(description = "文件名称 需要前端携带文件格式.html或.css", required = false)
    private String originFileName;

    @Base64Field
    @Schema(description = "文件内容，需要base64编码", required = true)
    private String source;

    @Schema(description = "是否包含页面", required = true)
    private boolean includePage;

    public boolean getIncludePage() {
        return includePage;
    }

    public void setIncludePage(boolean includePage) {
        this.includePage = includePage;
    }

    public String getRoot() {
        return root;
    }

    public void setRoot(String root) {
        this.root = root;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getOriginFileName() {
        return originFileName;
    }

    public void setOriginFileName(String originFileName) {
        this.originFileName = originFileName;
    }
}
